<?php
    /**
     * 服务器模式
     * @param  {number} draw 对应重绘
     * @param  {number} recordsTotal 过滤后总数
     * @param {Array} data 数据
     */
    //获得说有参
    $data = array();
    $data["draw"] = $_GET['draw'];
    //表的总条数
    $data["recordsTotal"] = 11;
    //条件过滤后记录数
    $data["recordsFiltered"] = 11;
    
    //数据
    if($_GET['start']<10){
        $arr = array(array("name"=>"jQuery","content"=>"内容介绍"),
        array("name"=>"Vue","content"=>"内容介绍"));

    }else{
        $arr = array(array("name"=>"Reactjs","content"=>"内容介绍"));
    }
    
    $data['data'] = $arr;
    //删除
    if(!empty($_GET['remove'])){
        $data['data'] = "";
    }

     echo json_encode($data);

    
 


?>